package com.ding.easycontroller.pojo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class ControllerUpdateOrAddVO {

    private String id;
    @NotNull
    private String js;
    @Pattern(regexp = "^(/(([a-zA-Z0-9._]*)|(\\*)|(\\*\\*)|(\\{[a-zA-Z0-9._]+})|))+$")
    private String uri;
    @NotNull
    private String method;
    private String description;
}
